#include "SimplePizzaFactory.h"

#include "CheesePizza.h"
#include "GreekPizza.h"
#include "PepperoniPizza.h"

#include <assert.h>

Pizza * SimplePizzaFactory::createPizza(std::string type){
    Pizza *pizza;
    
    if (type == "Cheese") pizza = new CheesePizza();
    else if (type == "Greek") pizza = new GreekPizza();
    else if (type == "Pepperoni") pizza = new PepperoniPizza();
    else {
        std::cout << "Invalid type!" << std::endl;
        assert(false);
    }

    return pizza;
}